{lang alias:rewite1}<br>
<a href="http://my.nice9s.com/!%E5%B8%96%E5%AD%90%E5%88%AB%E5%90%8DRewrite%E8%AE%A8%E8%AE%BA" target="_blank">{lang alias:rewite2}</a><br>
<h1>Nginx Web Server</h1>
<pre class="colorbox">
rewrite ^([^\.]*)/$fm_tags$ $1/alias_misc.php?mod=tag&alias=$2 last;
rewrite ^([^\.]*)/$fm_tag$ $1/misc.php?mod=tag last;
rewrite ^([^\.]*)/$fm_tid_page$ $1/alias.php?mod=viewthread&alias=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/$fm_tid$ $1/alias.php?mod=viewthread&alias=$2 last;
rewrite ^([^\.]*)/$fm_rss$ $1/alias.php?mod=rss&fid=$2 last;
</pre>
<h1>Apache Web Server({lang alias:duli_host_user})</h1>
<pre class="colorbox">
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/$fm_tags$ $1/alias_misc.php?mod=tag&alias=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/$fm_tag$ $1/misc.php?mod=tag
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/$fm_tid_page$ $1/alias.php?mod=viewthread&alias=$2&extra=page\%3D$4&page=$3&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/$fm_tid$ $1/alias.php?mod=viewthread&alias=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^(.*)/$fm_rss$ $1/alias.php?mod=rss&fid=$2
</pre>
<h1>Apache Web Server({lang alias:xuni_host_user})</h1>
<pre class="colorbox">
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^$fm_tags$ alias_misc.php?mod=tag&alias=$2
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^$fm_tag$ misc.php?mod=tag
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^$fm_tid_page$ alias.php?mod=viewthread&alias=$1&extra=page\%3D$3&page=$2&%1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^$fm_tid$ alias.php?mod=viewthread&alias=$1
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^$fm_rss$ alias.php?mod=rss&fid=$1
</pre>
<h1>IIS Web Server({lang alias:duli_host_user})</h1>
<pre class="colorbox">
RewriteRule ^(.*)/$fm_tags(\?(.*))*$ $1/alias_misc.php\?mod=tag&alias=$2
RewriteRule ^(.*)/$fm_tag(\?(.*))*$ $1/misc.php\?mod=tag
RewriteRule ^(.*)/$fm_tid_page(\?(.*))*$ $1/alias\.php\?mod=viewthread&alias=$2&extra=page\%3D$4&page=$3&$6
RewriteRule ^(.*)/$fm_tid(\?(.*))*$ $1/alias\.php\?mod=viewthread&alias=$2
RewriteRule ^(.*)/$fm_rss(\?(.*))*$ $1/alias\.php\?mod=rss&fid=$2
</pre>
<h1>IIS7 Web Server({lang alias:duli_host_user})</h1>
<pre class="colorbox">
&lt;rule name="forum_tags"&gt;
    &lt;match url="^(.*/)*$fm_tags\?*(.*)$" /&gt;
    &lt;action type="Rewrite" url="{R:1}/alias_misc.php\?mod=tag&amp;alias={R:2}" /&gt;
&lt;/rule&gt;
&lt;rule name="forum_tag"&gt;
    &lt;match url="^(.*/)*$fm_tag\?*(.*)$" /&gt;
    &lt;action type="Rewrite" url="{R:1}/misc.php\?mod=tag" /&gt;
&lt;/rule&gt;
&lt;rule name="forum_alias_page"&gt;
    &lt;match url="^(.*/)*$fm_tid_page\?*(.*)$" /&gt;
    &lt;action type="Rewrite" url="{R:1}/alias.php\?mod=viewthread&amp;alias={R:2}&amp;extra=page%3D{R:4}&amp;page={R:3}&amp;{R:5}" /&gt;
&lt;/rule&gt;
&lt;rule name="forum_alias"&gt;
    &lt;match url="^(.*/)*$fm_tid\?*(.*)$" /&gt;
    &lt;action type="Rewrite" url="{R:1}/alias.php\?mod=viewthread&amp;alias={R:2}" /&gt;
&lt;/rule&gt;
&lt;rule name="fm_rss"&gt;
    &lt;match url="^(.*/)*$fm_rss\?*(.*)$" /&gt;
    &lt;action type="Rewrite" url="{R:1}/alias.php\?mod=rss&amp;fid={R:2}" /&gt;
&lt;/rule&gt;
</pre>

<h1>Zeus Web Server</h1>
<pre class="colorbox">
match URL into $ with ^(.*)/$fm_tags\?*(.*)$
if matched then
    set URL = $1/alias_misc.php?mod=tag&alias=$2
endif
match URL into $ with ^(.*)/$fm_tag\?*(.*)$
if matched then
    set URL = $1/misc.php?mod=tag
endif
match URL into $ with ^(.*)/$fm_tid_page\?*(.*)$
if matched then
    set URL = $1/alias.php?mod=viewthread&alias=$2&extra=page\%3D$4&page=$3&$5
endif
match URL into $ with ^(.*)/$fm_tid\?*(.*)$
if matched then
    set URL = $1/alias.php?mod=viewthread&alias=$2
endif
match URL into $ with ^(.*)/$fm_rss\?*(.*)$
if matched then
    set URL = $1/alias.php?mod=rss&fid=$2
endif
</pre>